/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1studentdemo;

/**
 *
 * @author apple
 */
public class Student {
    
    private String name;
    private int num;
    private int age;
    
    public Student()
    {
        
    }
    
    public Student(String name)
    {
        this.name=name;
    }
    
    public Student(String name,int num)
    {
        this.name=name;
        this.num=num;
    }
    
    public Student(String name,int num,int age)
    {
        this.name=name;
        this.num=num;
        this.age=age;
    }
    
    public String getName()
    {
        return this.name;
    }
    
    public void setName(String name)
    {
        this.name=name;
    }
    
    public int getNum()
    {
        return this.num;
    }
    
    public void setNum(int num)
    {
        this.num=num;
    }
    
    public int getAge()
    {
        return this.age;
    }
    
    public void setAge(int age)
    {
        this.age=age;
    }
    
    public void study()
    {
        System.out.println(this.name+" is studying.");
    }
}
